﻿namespace CodeProject.Podium.PowerPoint
{
    using System.Linq;

    public partial class ThisAddIn
    {
        SlideShowService slideShowService;

        private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            slideShowService = new SlideShowService();
            slideShowService.Initialize(this.Application);

            this.CustomTaskPanes.Add(new DebugPane(), "Debug");
            this.CustomTaskPanes.First().Visible = true;
        }

        private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
        {
            slideShowService.Shutdown();
        }

        #region VSTO generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InternalStartup()
        {
            this.Startup += new System.EventHandler(ThisAddIn_Startup);
            this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
        }
        
        #endregion
    }
}
